package com.onedec.menu.dao;

import com.onedec.menu.entity.OnedecPermission;
import com.onedec.menu.entity.OnedecPermissionExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;


public interface OnedecPermissionDao {
    long countByExample(OnedecPermissionExample example);

    int deleteByExample(OnedecPermissionExample example);

    int deleteByPrimaryKey(Integer permissionId);

    int insert(OnedecPermission record);

    int insertSelective(OnedecPermission record);

    List<OnedecPermission> selectByExample(OnedecPermissionExample example);

    OnedecPermission selectByPrimaryKey(Integer permissionId);

    int updateByExampleSelective(@Param("record") OnedecPermission record, @Param("example") OnedecPermissionExample example);

    int updateByExample(@Param("record") OnedecPermission record, @Param("example") OnedecPermissionExample example);

    int updateByPrimaryKeySelective(OnedecPermission record);

    int updateByPrimaryKey(OnedecPermission record);

    List<OnedecPermission> selectMainMenusById(Integer eid);

    List<OnedecPermission> selectSubMenusById(Map map);
}